Show the dialog on the monitor containing the pointer, rather than
the monitor with active focused window. This brings it inline with
the behaviour seen when launching applications.
Remove the focusMonitor/focusIndex from LayoutManager. These
properties were only used by the modal dialogs. Remove them since
they are not being used elsewhere.
https://bugzilla.gnome.org/show_bug.cgi?id=642591
return false;
},
- get focusIndex() {
- let focusWindow = global.display.focus_window;
-
- if (focusWindow) {
- let wrect = focusWindow.get_outer_rect();
- for (let i = 0; i < this.monitors.length; i++) {
- let monitor = this.monitors[i];
-
- if (monitor.x <= wrect.x && monitor.y <= wrect.y &&
- monitor.x + monitor.width > wrect.x &&
- monitor.y + monitor.height > wrect.y)
- return i;
- }
- }
-
- return this.primaryIndex;
- },
-
- get focusMonitor() {
- return this.monitors[this.focusIndex];
+ get currentMonitor() {
+ let index = global.screen.get_current_monitor();
+ return Main.layoutManager.monitors[index];
},
_startupAnimation: function() {
},
_fadeOpen: function() {
- let monitor = Main.layoutManager.focusMonitor;
+ let monitor = Main.layoutManager.currentMonitor;
this._backgroundBin.set_position(monitor.x, monitor.y);
this._backgroundBin.set_size(monitor.width, monitor.height);